
/*
 * Copyright 2002-2012 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/*
 *版权所有2002-2012原作者。
 *
 *根据Apache许可证2.0版（“许可证”）许可；
 *除非符合许可证的规定，否则您不得使用此文件。
 *您可以在以下网址获取许可证副本
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 *除非适用法律要求或书面同意，否则软件
 *根据许可证分发是在“按原样”的基础上分发的，
 *无任何明示或暗示的保证或条件。
 *有关管理权限的特定语言，请参阅许可证
 *许可证下的限制。
 */

package org.springframework.context.annotation;

import org.springframework.instrument.classloading.LoadTimeWeaver;

/**
 * Interface to be implemented by
 * {@link org.springframework.context.annotation.Configuration @Configuration}
 * classes annotated with {@link EnableLoadTimeWeaving @EnableLoadTimeWeaving} that wish to
 * customize the {@link LoadTimeWeaver} instance to be used.
 *
 * <p>See {@link org.springframework.scheduling.annotation.EnableAsync @EnableAsync}
 * for usage examples and information on how a default {@code LoadTimeWeaver}
 * is selected when this interface is not used.
 *
 * @author Chris Beams
 * @since 3.1
 * @see LoadTimeWeavingConfiguration
 * @see EnableLoadTimeWeaving
 */
/**
 *接口将由实现
 *｛@link org.springframework.context.annotation.Configuration@配置｝
 *用｛@link EnableLoadTimeWiving@EnableLoadTimeWeaving｝注释的类，希望
 *自定义要使用的{@link LoadTimeWeaver}实例。
 *
 *<p>请参阅｛@link org.springframework.scheduling.annotation.EnableAsync@EnableAsync｝
 *有关默认｛@code LoadTimeWeaver｝的用法示例和信息
 *在不使用此接口时选择。
 *
 *@作者Chris Beams
 *@自3.1起
 *@参见LoadTimeWeaving配置
 *@请参阅EnableLoadTimeWiving
 */
public interface LoadTimeWeavingConfigurer {

	/**
	 * Create, configure and return the {@code LoadTimeWeaver} instance to be used. Note
	 * that it is unnecessary to annotate this method with {@code @Bean}, because the
	 * object returned will automatically be registered as a bean by
	 * {@link LoadTimeWeavingConfiguration#loadTimeWeaver()}
	 */
	/**
	 *创建、配置并返回要使用的{@code LoadTimeWeaver}实例。笔记
	 *没有必要用{@code@Bean}来注释这个方法，因为
	 *返回的对象将自动注册为bean
	 *｛@link LoadTimeWeavingConfiguration#loadTimeWeaver（）｝
	 */
	LoadTimeWeaver getLoadTimeWeaver();

}
